import {HttpService} from './http';
const $axios = new HttpService()

export const apiHandleList = (param?:any) => $axios.postData(param, '/process/procConfig', 'model/list',true,true).then((result) => {
    return result
}, (error:any) => {
    console.log(error);
});
export const apiHandleDelete = (param?:any) => $axios.postData(param, '/process/procConfig', 'model/delete',true,true).then((result) => {
    return result
}, (error:any) => {
    console.log(error);
});
export const apiHandlAdd = (param?:any) => $axios.postData(param, '/process/procConfig', 'model/create',true,true).then((result) => {
    return result
}, (error:any) => {
    console.log(error);
});
export const apiHandlInfo = (param?:any) => $axios.postData(param, '/process/procConfig', 'model/detail',true,true).then((result) => {
    return result
}, (error:any) => {
    console.log(error);
});
export const apiHandlUpdate = (param?:any) => $axios.postData(param, '/process/procConfig', 'model/update',true,true).then((result) => {
    return result
}, (error:any) => {
    console.log(error);
});


export default {
    apiHandleList,
    apiHandleDelete,
    apiHandlAdd,
    apiHandlInfo
}